<?php
defined('_JEXEC') or die('Restricted access');
define('YOURBASEPATH', dirname(__FILE__));
$app = JFactory::getApplication();
$menu = $app->getMenu();
$lang = JFactory::getLanguage();
if ($menu->getActive() == $menu->getDefault($lang->getTag())) {
  $viewHomePage = true;
}
else {
  $viewHomePage = false;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
  <head>
    <meta charset="UTF-8" />
    <title><?php echo $this->params->get('slogan'); ?></title>
    <link rel="shortcut icon" href="favicon.ico" />
    
    <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/jquery.cycle.min.js"></script>
    <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/jquery.jcarousel.min.js"></script>
	<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/ddsmoothmenu.js"></script>
    <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/custom.js"></script>
    <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/style.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/skin.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ddsmoothmenu.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ddsmoothmenu-v.css" />
    <script type="text/javascript">
      jQuery.noConflict();
    </script>
    <jdoc:include type="head" />
  </head>
  <body>
    <div id="page">
      <div id="header">
        <div class="lang">
          
          <?php if ($this->countModules('language')) : ?>
          <jdoc:include type="modules" name="language" />
          <?php endif; ?>
        </div>
        <div class="logo">
          <a href="#"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo.png" /></a>
        </div>
        <div class="clear"></div>
        
        <div id="menu">
          <?php if ($this->countModules('top')) : ?>
          <jdoc:include type="modules" name="top" />
          <?php endif; ?>
        </div>
        
        <div class="clear"></div>
        
        <div class="banner">
        <?php if ($this->countModules('slideshow')) : ?>
            <jdoc:include type="modules" name="slideshow" />
        <?php endif; ?>
         </div>
        <div class="search">
          <form name="search" method="POST">
            <input type="text" name="search" class="txt-search" value="" />
            <input type="submit" class="btn-search" name="btn-search" value="" />
          </form>
        </div>
      </div><!--End #header-->
      <div class="clear25"></div>
       <?php if (!$viewHomePage) : ?>
       <?php if ($this->countModules('breadcrumb')) : ?>
        <div class="block-breadcrumb">
            <jdoc:include type="modules" name="breadcrumb" />
        </div>
      <?php endif; ?>
        <?php endif; ?> 
      <div id="main-wrapper">
        
        <div class="left">
          <?php if ($this->countModules('about-block')) : ?>
          <h2>Giới thiệu</h2>
          <jdoc:include type="modules" name="about-block" />
		  <div class="clear25"></div>   
          <?php endif; ?>
          
          <?php if ($this->countModules('left')) : ?>
          <jdoc:include type="modules" name="left" />
          <?php endif; ?>
          
          <div class="clear25"></div>
          
          <?php if ($this->countModules('notice-block')) : ?>
          <h2>Thông báo</h2>
          <jdoc:include type="modules" name="notice-block" />
          <?php endif; ?>
        
        </div>
        <?php if ($viewHomePage) : ?>
        <div class="content">
          <?php if ($this->countModules('about-us')) : ?>
          <jdoc:include type="modules" name="about-us" />
          <?php endif; ?>
          
        </div>
        <?php else : ?>
        <div class="content">
           
          <jdoc:include type="component" />
          <?php if ($this->countModules('related-article')) : ?>
          <jdoc:include type="modules" name="related-article" />   
          <?php endif; ?>
        </div>
       <?php endif; ?>
        <div class="clear25"></div>
        <div class="slide-footer">
          <div class="slides-logo">
            <?php if ($this->countModules('user1')) : ?>
            <jdoc:include type="modules" name="user1" />
            <?php endif; ?>
          </div>
        </div>
      </div><!--End #main-wrapper-->
    </div><!--End #page-->
    <div class="clear"></div>
    <div id="footer-wrapper">
      <div class="footer">
        <div class="left-footer">
          <div class="clear" style="padding-top: 10px;"></div>
          <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logof.png" />
          <p style="padding-top: 10px;">Copyright ©2009 Trường Đại học Đại Nam <br />
            Cơ sở chính: Phú Lãm, Hà Đông, Hà Nội<br />
            Cơ sở 2: 56 Vũ Trọng Phụng, Thanh Xuân, Hà Nội<br />
            Điện thoại: (04) 35577799 - Fax: (04) 35578759<br />
            Email: bantruyenthong@dainam.edu.vn</p>
        </div>
        <div class="right-footer">
           <div class="toppage"><a  href="#" style="padding-left: 4px;color: #fff;"><?php echo JText::_('MOVE_TOP'); ?></a></div>
          <div class="clear"></div>
          <div class="icon">
            <a href="#" class="social-icon fb"></a>
            <a href="#" class="social-icon tw"></a>
            <a href="#" class="social-icon gp"></a>
          </div>
          <div class="clear"></div>
          <p style="padding-top: 20px;float: right;">Designed by lailainguyen</p>
        </div>
      </div>
    </div><!--End #footer-wrapper-->
  </body>

</html>